Add registerPackHandler and registerUnpackHandler to set custom handler. fix #4
Use TypeInfo instead of string to register pack/unpack handler