Maxwell and Scalar Fields in Nonstandard Cosmology