Added possibility of recursively binding custom types