Fixing type access in constructor problems.

This does not solve the underlying problems, but fixes bugs w.r.t. Constructor creation. See issue #16 on github.
Adding test case for reversing an empty list.