imporvements to uninitializedFill && initializeAll

Because they didn't really handle all of the cases correctly.

Added unittests.
whitespace
Merge pull request #1009 from monarchdodra/initializeAll

improvements to uninitializedFill && initializeAll