Changed the XBAMPType encodeObject and decodeData methods to instance methods (they were class methods) because some types need one or more attributes to encode/decode objects/data. Created the XBAMPArray type.