Fix bug in array padding, template matching
Fix doctests
Update arraypad tests
Add support for 3-D template matching
Reuse 2D sum in 3D sum
Add tests for 3-D template matching
Add tests for wrong input shapes
Fix doc tests
Avoid temporary array allocations
Add missing bracket in doc tests
Re-order input checks
Fix test case
Fix ndim test
Improve description of match_template
Refactor final slicing
Add test for reflected padding
Fix and improve doc string
Fix input test of template matching
Merge pull request #847 from ahojnnes/template

Fix bugs in array padding and template matching