Implement /rangelock

More info: http://www.smogon.com/forums/threads/3517493/
Same crash issue here. Probably just make it default to <code>''</code>.