re #579: updated states array to work with old and new Drupal point versions