phase/serialization: add utilities to get name and type of attributes