Fixed disrespect of overrides of CActiveRecord::attributeNames()

Issue #627

I think we should provide some tests for this enhancement