Fix ordering of @import and @charset rules #1954 #2013

The genCss method of ruleset.js splits child nodes into two groups:
* rules,
* rulesets.

Rules are always printed first and have special handling for last rule.
Rulesets are always printed second. Wrong ordering was caused by the
condition that determined what is rule and what is ruleset.

Issue #2013: The condition made no difference between @charset and @page,
because both are compiled into tree.Directive nodes. I added isRulesetLike
method to the tree.Directive to differentiate between them.

Issue #1954: The condition treated all tree.Anonymous types as rules and
caused them to float up. That is incorrect, because `@import (inline)` is
compiled into tree.Anonymous too, but should be treated as ruleset and
stay where it is.
Source map changed together with import inline ordering
Removing useless comments.
Merge pull request #2117 from SomMeri/import-charset-ordering-2013-1954

Fix ordering of @import and @charset rules #1954 #2013
Merge https://github.com/less/less.js into font-face-property-merge-2-2035

Conflicts:
	test/sourcemaps/basic.json