[edit] exclude Netbeans files
[fix] when prepending options, numeric keys are re-indexed

- includes test to reproduce the bug
- fix for the bug, keep the keys when inverting the array
Merge pull request #19 from madmanmax/master

Fix for numeric values being lost when prepending options.