Enabled strict mode, and fixed issues raised.
Merge pull request #352 from okfn/strict-mode

Enable strict mode - thx to @djw.