Ignore non-array jsonProps

fix #23

This is the backward-compatible approach. Completely dropping support for defining dependency files under `scripts` and `styles` is also viable, especially considering that defining `main` is a requirement anyway.