Add more AccessTransformer rules. Fix #192.
Fix potential crash with Pattern Upgrade.