Fix small typo for Banking

-fix arraylenght for packet buffer causing bank_vault not to be
refreshed correctly.
-enforce sd check for mappacket
-fix unused variables warnings