Custom serialization and deserialization implemented. Fixes #12. Up to standard with Ruby and JVM (no eval). Fixes #11. Serialization allows only certain Thrift types. Fixes #10.