added support for OL.Class classes (open layers)