Fixes to resolve test failures on DevStudio 2008 32-bit.
Cleaned up the piecewise curve creator typedefs to be more consistent between classes. Also changed an int constructor parameter to index_type to remove loss of precision conversion warning.