Make @Nested and @Flatten be @ManagedAnnotation