(GEP-171) Support the * => syntax in resource expression

Ensure that '*' can be used as an attribute name, but only if
target platform >= 4.0. Also check that LHS of attribute is either
dynamic or a literal hash.