replaced large case statement with call to deserializeValue
added deserialization for nbytearray and nbiginteger arrays
forgot to actually set the deserialized object
removed some unnecessary checks