- don't call tclcode_to_html on non-tcl files, since it might loop on e.g. /api-doc/content-page-view?version_id=4404&path=packages/acs-core-docs/www/xml/kernel/ext-auth.xml
- improve the correctness of the numeric range test, otherwise leading zeros is causing troubles, or e.g. "num=0;copy" is accepted for e.g. "range(0|5)"