Capture the error thrown by toString method.
Add stack info when capture error thrown by toString method.
Check the format of config.macro and config.template.
Update version to 0.6.11