Enforce memory alignment to improve performance of vector operations.  Also fixed bugs in an earlier optimization.
Merge pull request #224 from peastman/master

Enforce memory alignment to improve performance of vector operations.  Also fixed bugs in an earlier optimization.