Print objects when debug is enabled. Closes #540
Merge pull request #552 from caelum/gh540

Print objects when debug is enabled. Closes #540