BMGame->capture() now correctly chooses which die to apply die hooks to

Fixes #1306.

I've also been through all other array_search() calls in the code and fixed one other possible problematic array_search() call in BMButton.

http://jenkins.buttonweavers.com:8080/job/buttonmen-blackshadowshade/436/