Add Spire to test dependencies

Add test for using arbitrary numeric types in factory methods.