Add an open flag for enableing the use of texture arrays ( now disabled by default - was enabled by default )
Removed redundant loader handle parameters from some of the API functions.
Resource IDX is nolonger a primitive typedef, if needs to be freed after use.
Added refrence counding.
_close() function only loses pak on refcount == 0.
added _forceclose() to close pak regardless of refcount.
_*close() functions now return current refcount.
updated test.c to reflect new API.