added possibility to define interfaces for beans.

This is useful for tagging interfaces like Serializable, but could potentially also be used with interfaces with default methods.