[[feature-stackdir]] Correct formatting of real numbers.

Correctly use a precision specifier rather than a field width
specifier, and only add a trailing '.' if 'e' or '.' were *not* found.
[[feature-stackdir]] Create formatting of array literal.
[[feature-stackdir]] Save objects' internal properties.