Fixed error in new pipe stream function template system not setting the right device token for R/W operations (also thanks to John Andrews).