Add defaultVal and initialVal for Scalar type