WP7: Improved double to ulong conversion.
unitTest, maCreateImageFromData: More negative tests.
BB10: Fixed maCreateImageFromData negative.