Fix bug in ManagerLayer.read() - it returned invalid JSON for empty arrays