Several additional fixes

I've added several fixes and two location of errors that need
rethingking. Also added a import reflection and reflection filter to
example1 to let all the compilation errors show, so it is easier to
track them down.
Awesome work done in the new functionality!