References are not allowed as default values

References are not allowed as default values, you must wrap the default of <some attribute> in a CODE reference (ex: sub { [] } and not [])