determine const expr; more flexible for-in-range handling
determine const expr; more flexible for-in-range handling

switch-education/pxt,Microsoft/pxt,Microsoft/pxt,Microsoft/pxt,switch-education/pxt,Microsoft/pxt,switch-education/pxt,switch-education/pxt,Microsoft/pxt,switch-education/pxt