Make std.array.insertInPlace @safe for some cases

This pull request makes `insertInPlace` safe for some cases like:

* array for `int[]`

I leave the case for strings because the unittest for it uses `std.conv.to` which is currently not safe for strings.