Change attribute API to a template one.
Make API more generic (accept H50bject and hid_t)