Added tests for support of class fields, and a proper metaclass hierarchy

Signed-off-by: Stefan Marr <git@stefan-marr.de>