[cs/java] optimize Reflect.fields for dynamic objects