GlobalVector: fix capacity check.
GlobalVector: fix capacity check.

buaasun/grappa,alexfrolov/grappa,alexfrolov/grappa,buaasun/grappa,buaasun/grappa,uwsampa/grappa,alexfrolov/grappa,uwsampa/grappa,buaasun/grappa,alexfrolov/grappa,alexfrolov/grappa,uwsampa/grappa,buaasun/grappa,alexfrolov/grappa,alexfrolov/grappa,uwsampa/grappa,buaasun/grappa,uwsampa/grappa,uwsampa/grappa,buaasun/grappa,uwsampa/grappa