Support for callables on check_attributes (issue #48)