more tests, bug fix with options and array for native types