Add some convenience methods for querying function attributes.