#612: Attributes other than String and element iterable in foreach are not supported

By the way, I also fix bugs on ```assertion.fromNewLogin``` and ```assertion.primaryAuthentication.authenticatedDate```...