Prevent multi-line observer names (which broke sample export).
Fixed ClassCastException bug in manage samples checkbox state restore.