added support for consise methods declaration in objects
added tests

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>