Allow options to override error

If an error was missing certain fields, they couldn't be provided by the opt parameter. This resolves that. It also checks showStack for actually being true, 'undefined' was filtering through.
Added basic test for fileName override on Error
Merge pull request #41 from RR2DO2/patch-1

Allow options to override error