Beans: restrict to AnyRef