[BUGFIX] Added asserts for reserved route/resource names

Added asserts for routes/resources named 'array' or 'object' (in addition to 'basic'). Quick fix for #5425.