make spine.New loading more robust by replacing dynamic conversions with static types