move type casting for polyfilled elements into the model
fix to skip coercion when complex criteria is used on the pk field