Fix setting isA when using ref(). Fix #257

This broke with the last change to _setIsA in HSSContainer