Updated AUTHORS file to include Alwin as contributor.
Added testcase.
Merge branch 'dev' into cdg
Increased type-safety, less casting.