Added array default value to range_defval and added tests