Modified array slicing

Moved to the comma literal inside the ternary so that it is only added if the LHS expression is not null.
Modified library functions

Added a ones_int.