CRM-15534 - Fix api.getfields to return custom fields from sub-types