replaced index constructors from specific signed / unsigned integers by template versions; should be more general and fix a compilation error on macOS (relates #205)