Fix for cases where valid lvalues were not being computed.

TypeCasts and Function Calls can return valid LValues in certain circumstances.

Resolves compiler crashes in Issues #480 and #438.