cleanup and adding of some missing client functions

remove bytearray_to_buffer
remove size arguments, size can be determined from data
add more missing client functions
add a AttributeDict for easy access of type definitions