Added boolean arrays reduction specs
Enhanced isArray to handle tables with nil values (Thanks @kikito)