Return an empty object instead of null for non-specifiec `parameters` in LoaderInfo

This doesn't add support for actually supplying parameters, so it's mostly a stub.
Properly clamp values or throw errors in some Stage setters

assert mustn't ever be used on content-supplied values.
Merge pull request #1452 from tschneidereit/nat

Bugfixes in Stage and LoaderInfo builtins