Repeat command tested and misc bugfixes.


Signed-off-by: nppangband <nppangbanddev@verizon.net>