Added classes TypeFlagAccess and TypeFlagValue to simplify API