fix : now handles primitives serialisation
add check over class tokens
serialize constants