Replaced nil usage with package var defaultElementValue

This makes changing the element type to a value type easier