ExpressionTransformer.baseExpressionMember #1080: make sure we use the original declaration unless substituted

This way we get to the right toplevel declaration
Test for #1080: original member declration lost when refined in a condition
Updated test .src as a positive (more correct) side-effect of the #1080 fix