Fix internal primitive id resolution. Fix #15

It was not forced to be serialized to string, therefore it collided
with `null` case
v0.3.5