Revenue code 4 is for records that are not small business or small farm loans in the CRA software. So you are correct, an entry of "4" would indicate the record is a consumer loan.
You are allowed to collect and maintain information about loans other than small business and small farm and community development loans for potential inclusion in a CRA performance evaluation. The loan type and revenue type fields are for that purpose.
_________________________
CRA Exam Preparation, CRA Performance Evaluations, Key Performance Benchmarks, & maps