Disable command pipe functionality on Windows.
Remove InitializeLibrary TODO.

Closes #3538
Implement REGISTER_SCRIPTFUNCTION() and clean up how check types are registered.