Fix the builtin classes option.

Allow the built in JavaScript types to be documented again as this had stopped working. Also added an integration test for this.