sun/misc natives.

Typing fixes found some fun bugs, too.