Add support for objects as class

[see https://github.com/jadejs/jade/pull/1704]