Added support for serialize versions.
Fixing build in clang
Adding implementations for built-in and stl types.