restructure dump.c slightly to make it more flexible
WIP: progress towards serializing/deserializing a single module at a time
WIP: add support for forward value references in the backref table
WIP: rehash affected method tables due to datatype->uid changes after restoring
be alot more careful about serializing types, especially ones that are also methods, and minor corrections
serialize methlist in reverse order to stabilize method order after deserializing (see #8652 for cause). note this causes more nuisance ambiguity warnings
fix crash in sortrows

the subtype check in gf.c:ml_matches (line 1834) was causing an extra
matching method to be missed, when we have both call(::Type{Perm},...)
and call(::Type{Perm{O,V}},...)
slightly cut down lowered code for kwcall

Conflicts:
	src/julia-syntax.scm
ndigits0z(n::BigInt, b): avoid expensive off-by-one check for b=2^k.

Fixes #8727, but it's kind of a bandaid since for non-power-of-two
bases ndigits0z is still slow due to GMP's inexcusable laziness. At
least for power-of-two bases, however, BigInt hashing is now about
3x faster and allocates no memory.
Merge branch 'master' of github.com:JuliaLang/julia
Merge branch 'jn/static_compile_3'