Fixed crashing due to Object[] casting

This addresses the issue #15 I raised initially
I actually compiled with Eclipse. `src` would be pointing to an empty directory considering its parent is `main/` not `library/` . I see the problem would most likely come in for Android Studio users. I'd revert now