Aspects of nonideal Stern–Gerlach experiment and testable ramifications