Added bugs demo (for MSIE8 etc)
Fixes #9 'type' is null or not an object
Fixes 'regexCache' is null or not an object
Test for undefined placeholder (already fixed in mainstream)
Merge pull request #10 from hpaluch/master

Fixes both 'type' is null and 'regexCache' is null