Add Andrew's fix for MessageLock. Make Chain default pattern type.