Improved TestNumpyInterface to cover various append implementations.

Change-Id: I60fe2e706563146817ef5041f41c5e3496079141
Merge topic 'improved-numpy-array-testing' into master

3c80a0a0 Improved TestNumpyInterface to cover various append implementations.