Put more info into asserts.
Fix of max_var limit in var imp toHTML code.