Strict mode and associated bugfixes. #51