[BUGFIX] Segfaults on object comparisons