Bump version to 3.1.1
Patch up pattern_teleport()