Add separate access functions for specific types.  Fixes #4.