Fix syntax errors in non copyable class check

This part of the code had no code coverage, so I added a test for it.
See also bug #13
Further fixes for log message syntax errors

See #13
Bump version number to v1.6.1
Merge branch 'hotfix/v1.6.1'