Fix fromObject & fromRow by retyping primitive values