Avoid narrowing conversions in initializer.

Resolves #1374.
Don't use NULL for non-pointer.

Resolves #1375.
Fix obvious typo.

Resolves #1376.