fixing dot notation lookups for traits/properties that have dots in them

@calvinfo wasn't able to test this because of the duo issue:
https://cloudup.com/cJgG2hiMRK7