Helicity and dynamo action in magnetized stellar radiation zones