#642 - added getTypes functionality.