Allow to overwrite get_inline_instances

This patch allows to overwrite the function get_inline_instances in classes Nested*.
The problem was that instance was not present in get_inline_instances calls.