Support for inner interfaces to jackson module

There's many situations where it's more convenient to just have some simple interfaces inside a class. It's also nice when doing quick prototyping.