allow use of callable for attribute type check (register_atype)
enable register_atype for structx.ethernet.UDP.data