Added NBT <-> PHP array/type conversion methods

These changes allow the creation of NBT structures via arrays or other types, without having to create the NBT object tree manually. It also allows to convert a NBT tree to normal arrays.