Added option for different serialization strategies

Default on windows is inspect, on all other platforms Marshal.
YAML is also available