Allow :class_name and :defaults flag usage at once

See issue #57