Fixed a bug concerning signatures originating from nested classes.
Added tests for that.