Improve and fix bugs in type hinting of serialization nodes

Improve performance of serialization nodes, optimize type hinting.
Fix bugs about type hinting (causes exception) in YacqNode-derived classes.
Fix bugs in serialization nodes (fails deserialization) which is derived from
DynamicNode class.