reworked support for native types
reworked support for int -> byte